<%@ Page Theme="BlueSkin" Title="LMS : Staff Training" Language="C#" MasterPageFile="~/LmsWebSite/MasterEN.master" AutoEventWireup="true" CodeFile="ManagerMainEN.aspx.cs" Inherits="ManagerMainEN" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
                <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
<table cellspacing="5" cellpadding="5" width="100%">
        <tr>
            <td align="left" class="heading">
            <div class="floating">
                Staff Training
                </div>

               

                

                <div class="clearing"></div>


            </td>
        </tr>

        <tr>
                        <td class="aligning">
                           

                            
                                            <p style="text-align:justify;margin-right:5px;margin-left:5px;">
                                                In this section the manager can manage the process of training for his employees by assigning courses to them and follow their training process.  Also, he can delegate this job to another manager.
                                            </p>
                                            
                                            <div class="clearing" style="height:5px;"></div>

                                            <div class="unfloating aligning direction">
                                                <a href='HelpVideo/ManagerMainEN.swf' target="_blank" class="linktext">
                                                <asp:Label ID="lblVideo" runat="server" font-size="16px">
                                                Help Video (Staff Training)
                                                </asp:Label>
                                                </a>
                                            </div>
                                            <div class="clearing"></div>

                        </td>
                  </tr>


    </table>
    <br />
    
    <div class="aligning allWidth floating direction" style="margin-bottom:10px;">
        <div class="floating" style="font-size:1px;width:30px;height:1px;"></div>
        <div class="floating direction aligning" style="width:300px;">
            <asp:TextBox ID="txtSearch" runat="server" Width="300px"></asp:TextBox>
           
        </div>
        <div class="floating" style="font-size:1px;width:11px;height:1px;"></div>
        <div class="floating direction aligning" style="width:100px;">
            <asp:Button ID="btnSearch" runat="server" Text="Search" 
                onclick="btnSearch_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
        
        </div>
            
        <div class="clearing"></div>
        
        
        <div class="aligning allWidthWithMargins floating direction" style="margin-left:30px;margin-right:30px;margin-top:10px;margin-bottom:10px;">
            <asp:GridView DataKeyNames="GenID" ID="grdUsers" runat="server" 
                AutoGenerateColumns="False" AllowPaging="True" 
                 onrowdeleting="grdUsers_RowDeleting" Font-Size="12px" 
                onpageindexchanging="grdUsers_PageIndexChanging" 
                onrowdatabound="grdUsers_RowDataBound" Width="840px" 
                EnableModelValidation="True">
                <HeaderStyle HorizontalAlign="Center"/>
                <RowStyle HorizontalAlign="Center" />
                                
                <Columns>
                    
                    <asp:TemplateField HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle" HeaderText="">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkSelectEmployee" runat="server" />
                            
                        </ItemTemplate>
                        <HeaderStyle CssClass="gridRowStyle" />
                        <ItemStyle CssClass="gridRowStyle" />
                    </asp:TemplateField>
                    
                    <asp:TemplateField >
                        <HeaderTemplate>
                            <asp:Label ID="lblBadgeHead" runat="server" Text="Badge" Width="40px" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                           <asp:Label ID="lblBadgeItem" runat="server" Text='<%#  Eval ("Badge") %>' Width="40px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                   
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblFirstNameHead" runat="server" Text="First Name" Width="80px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblFirstNameItem" runat="server" Text='<%#  Eval ("Name_EN") %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>


                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblMiddleName_ENHead" runat="server" Text="Middle Name" Width="80px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblMiddleName_ENItem" runat="server" Text='<%#  Eval ("MiddleName_EN") %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>


                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblLastNameHead" runat="server" Text="Last Name" Width="80px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblLastNameItem" runat="server" Text='<%#  Eval ("FamilyName_EN") %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblGenderHead" runat="server" Text="Gender" Width="80px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                           <asp:Label ID="lblGenderItem" runat="server" Text='<%# ((DatabaseComponent.Persons)(Container.DataItem)).objGenderValue.GenderNameEN %>' Width="80px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                    


                                        
                    
                    
                    
                    
                    <asp:TemplateField>
                        <HeaderTemplate>
                                <asp:Label ID="lblActionsHead" runat="server" Text="Action" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           
                                <a href='<%# "EmpStatusEN.aspx?ID=" + Eval("GenID").ToString()%>'>Status</a>
                          
                                &nbsp;&nbsp;
                                <a href='<%# "AssignToEN.aspx?ID=" + Eval("GenID").ToString()%>'>Delegate to</a>
                                &nbsp;&nbsp;
                                <a href='<%# "RegisterByMngrEN.aspx?ID=" + Eval("GenID").ToString()%>'>Enroll</a>
                                &nbsp;&nbsp;

                                 <asp:LinkButton ID="lnkDelete" runat="server" CommandName="Delete" CommandArgument='<%# Container.DataItemIndex %>' OnClientClick="javascript:return confirm ('Do you really want to remove this employee from you ?');"   Text="Remove" CausesValidation="false"></asp:LinkButton>
                                  
                                                 
                        </ItemTemplate>
                        
                        
                    </asp:TemplateField>
                    
                    
                    
                    
                    
                        
                           
                        
               
                
                
                
                </Columns>
                
                
            </asp:GridView>
        </div>
        
        
        
        
        <div class="clearing"></div>
        
        <div class="allWidthWithMargins floating direction aligning" style="margin-left:30px;margin-right:30px;">
            <div class="direction aligning unfloating">
                <asp:Button ID="btnDelegateAll" runat="server" Text="Delegate All" 
                    BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" 
                    ForeColor="White" onclick="btnDelegateAll_Click"/>
            </div>
            <div class="direction aligning unfloating" style="width:10px;height:1px;font-size:1px;"></div>
             <div class="direction aligning unfloating">
                <asp:Button ID="btnDelegateSelected" runat="server" Text="Delegate Selected" 
                     BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" 
                     ForeColor="White" onclick="btnDelegateSelected_Click"/>
            </div>
            <div class="direction aligning unfloating" style="width:10px;height:1px;font-size:1px;"></div>
             <div class="direction aligning unfloating">
                <asp:Button ID="btnUnDelegate" runat="server" Text="Un Delegate" 
                     BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" 
                     ForeColor="White" onclick="btnUnDelegate_Click"/>
            </div>
            <div class="clearing"></div>

              
              
        </div>
        
        
        
        <div class="clearing"></div>
        
        <div class="aligning allWidthWithMargins direction" style="margin-left:30px;margin-right:30px;">
            <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red" EnableViewState="false"></asp:Label>
            <div class="clearing"></div>
            <asp:Label ID="lblResult" runat="server" Text="" ForeColor="Green" EnableViewState="false" ></asp:Label>
            
            <div class="clearing"></div>
        </div>
        
        <div class="clearing"></div>
        
    </div>
    
    <div class="clearing"></div>


    
                


    <div class="clearing" style="height:5px;"></div>

    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

